import { storeToRefs } from 'pinia'
import useLoginStore from '@/store/login/login'
function getRole() {
  const loginStore = useLoginStore()
  const { userInfo } = storeToRefs(loginStore)
  return userInfo.value.role.id
}

export { getRole }
